﻿namespace LxCFD
{
    public struct ONPair
    {
        public ONPair(int Owner, int Neighbor)
        {
            this.Owner = Owner;
            this.Neighbor = Neighbor;
        }
        public int Owner;
        public int Neighbor;
    }


}


//public void cal_A_Diag_r(out double A,double[] FineA_Diag,double[] FineA_LU_O,double[] FineA_LU_N,CoarseCell[] FineZoneCells,CoarseFace[] FineZoneFaces)
//{

//    r = 0;
//    A = 0;
//    foreach (int finecell in FineCells)
//    {
//        A += FineA_Diag[finecell];
//        r += FineZoneCells[finecell].r;
//    }
//    foreach (int innerfineface in InnerFineFaces)
//    {
//        CoarseFace cf = FineZoneFaces[innerfineface];
//        A += FineA_LU_O[cf.OwnerCellIndex];
//        A += FineA_LU_N[cf.NeighborCellIndex];
//    }
//}